﻿using System;
using Sissonix.Infrastructure.DomainBase;
using System.Data.Objects.DataClasses;

namespace Sissonix.Infrastructure.RepositoryFramework
{
    public interface IUnitOfWorkRepository
    {
        void PersistNewItem(IAggregateRoot item);
        void PersistUpdatedItem(IAggregateRoot item);
        void PersistDeletedItem(IAggregateRoot item);
        void CommitPersistedItems();
    }
}